<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script language="JavaScript" src="/static/jquery-3.3.1.min.js"></script>
    <script>
        $(function () {
            $.ajax({
                type : "POST",
                url : "/user/jsonTest.json",
                contentType : "application/json",
                data : '{"userName":"xiaoming","userSex":"男","userAge":12}',
                /*datType: "JSON",*/
                success:function (data) {
                    alert("插入成功,返回值：" + data.toString());
                },
                error:function (data) {
                    alert("插入失败，"+data.responseText);
                }
            });
        });
    </script>

</head>
<body>
dfags
</body>
</html>